//
// Created by wkm on 2023-12-03.
//

#ifndef MYSYSTEMCLEARNING_DRIVE_BANK_H
#define MYSYSTEMCLEARNING_DRIVE_BANK_H

#include "systemc.h"

const int BUS_SIZE = 4;

SC_MODULE(drive_bank) {
    sc_in<bool> myclk, read_state;
    sc_in<sc_lv<BUS_SIZE> > cpu_bus;
    sc_out<sc_lv<BUS_SIZE> > main_bus;

    void prc_drive_bank();

    SC_CTOR(drive_bank) {
        SC_METHOD(prc_drive_bank);
        sensitive_pos << myclk;
    }
};

#endif //MYSYSTEMCLEARNING_DRIVE_BANK_H
